home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso / handson / Java / JBAdventure / Application1.java < prev    next >
Encoding:
Java Source  |  1998-05-24  |  491 b   |  24 lines

  1.  
  2.  
  3. public class Application1 {
  4.   boolean packFrame = false;
  5.  
  6.   //Construct the application
  7.   public Application1() {
  8.     Frame1 frame = new Frame1();
  9.     //Pack frames that have useful preferred size info, e.g. from their layout
  10.     //Validate frames that have preset sizes
  11.     if (packFrame)
  12.       frame.pack();
  13.     else
  14.       frame.validate();
  15.     frame.setVisible(true);
  16.   }
  17.  
  18.   //Main method
  19.   static public void main(String[] args) {
  20.     new Application1();
  21.   }
  22. }
  23.  
  24.